#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">用户管理</a>
	  	<a><cite>用户管理</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<div class="">
		<form class="layui-form" action="#(ctx)/cmsAccount/enterAccountMng" method="post" onsubmit="return false;">
  			<div class="layui-inline">
	    		<label class="layui-form-label">昵称</label>
	   			<div class="layui-input-inline">
	      			<input type="text" name="nickName" placeholder="请输入昵称" class="layui-input" value="#(nickName)">
	    		</div>
  			</div>
  			<div class="layui-inline">
    			<label class="layui-form-label">登录账号</label>
    			<div class="layui-input-inline">
      				<input type="text" name="userName" placeholder="请输入登录账号" class="layui-input" value="#(userName)">
    			</div>
  			</div>
  			<div class="layui-inline">
    			<label class="layui-form-label">状态</label>
    			<div class="layui-input-inline">
      				<select name="status">
					  	<option value="">请选择状态</option>
					  	<option value="1" #if('1'==status) selected #end>正常</option>
					  	<option value="2" #if('2'==status) selected #end>删除</option>
					</select>  
    			</div>
  			</div>
  			<div class="layui-inline">
		    	<div class="layui-input-inline">
		      		<button class="layui-btn" onclick="ajaxSearchForm('.layui-form','#rightMain')">查询</button>
		    	</div>
		  	</div>
  		</form>
	</div>
	<table class="layui-table">
	  	<colgroup>
	    	<col width="80">
	    	<col width="200">
	    	<col>
	    	<col width="250">
	    	<col width="100">
	    	<col width="150">
	  	</colgroup>
	 	<thead>
	    	<tr>
	      		<th>序号</th>
	      		<th>昵称</th>
	      		<th>登录名</th>
	      		<th>创建时间</th>
	      		<th>状态</th>
	      		<th>操作</th>
	    	</tr> 
	  	</thead>
	  	<tbody>
	  		#for(x : accountPage.getList())
	    	<tr>
	      		<td>#(for.count)</td>
	      		<td>#(x.nickName)</td>
	      		<td>#(x.userName)</td>
	      		<td>#date(x.createTime,"yyyy-MM-dd HH:mm:ss")</td>
	      		<td>
	      			#status(x.status)
	      		</td>
	      		<td>
	      			<a class="pjax-a layui-btn layui-btn-xs" href="#(ctx)/cmsAccount/enterAccountEdit/#(x.id)" title="编辑">
	      				<i class="layui-icon layui-icon-edit"></i>
	      			</a>
	      			<a onclick="ajaxDelete('#(ctx)/cmsAccount/deleteAccount/#(x.id)')" title="删除" class="layui-btn layui-btn-xs layui-btn-danger" href="javascript:;">
	      				<i class="layui-icon layui-icon-delete"></i>
	      			</a>
	      			<a class="pjax-a layui-btn layui-btn-xs" href="#(ctx)/cmsAccount/enterAccountRole/#(x.id)" title="分配角色">
	      				<i class="layui-icon layui-icon-user"></i>
	      			</a>
	      		</td>
	    	</tr>
	    	#end
	  	</tbody>
	</table>
	###分页
	#set(append='')
	#if(nickName)
		#set(append=append+'&nickName='+nickName)
	#end
	#if(userName)
		#set(append=append+'&userName='+userName)
	#end
	#if(status)
		#set(append=append+'&status='+status)
	#end
	#@paginate?(accountPage.totalRow, accountPage.pageNumber, accountPage.totalPage, '/cmsAccount/enterAccountMng?page=')
</div>
#@jsInit()
#end